spinlock: ensure the flags parameter is wide enough
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Oct 2013 15:16:29 +0000 (17:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Oct 2013 15:16:29 +0000 (17:16 +0200)
commit170fa9967176c8627fe2e75dbe1dc5212019afde
treec180aaacd832ee4357a97143c3bb643fc9733a19
parent782dcf5c502ce089d13eaa92e1c6c324f751df16
spinlock: ensure the flags parameter is wide enough

Because of the construction of spin_lock_irq() (and varients), the flags
parameter could be trucated.  Use a BUILD_BUG_ON() to verify the width of the
parameter.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/xen/spinlock.h